<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>${sysname}</title>
<%@ include file="/WEB-INF/jsp/include/css.jsp"%>
<%@ include file="/WEB-INF/jsp/include/js.jsp"%>
<script type="text/javascript" src="${ctx}/js/sup/salary.js">
	
</script>
</head>

<body>
	<my:navigation text="账户管理>>　销售管理 >> 添加工资单" percent="90" />
	<form action="salaryManage_add.do" method="post" onsubmit="">
		<input type="hidden" name="ctx" value="${ctx}" />
		<table width="500" align="center" style="margin-top:30px" class="inputTable">
			<tr>
				<th>店员：</th>
				<td><select class="text" name="empId">
						<c:forEach items="${emps}" var="emp">
							<option value="${emp.empId}">${emp.empName}</option>
						</c:forEach>
				</select></td>
			</tr>
			<tr>
				<th>员工的职位为</th>
				<td><span style="color:red;" id="position"></span></td>
			</tr>
			<tr>
				<th>该职位的绩效考核标准是</th>
				<td><span style="color:red;" id="checkStandard"></td>
			</tr>
			<tr>
				<th>该职位每月最低出勤天数是</th>
				<td><span style="color: red;" id="pWorkDays" required></td>
			</tr>
			<tr>
				<th>该员工本月出勤天数</th>
				<td><input type="text" name="workDays" valType="number" required /></td>
			</tr>
			<tr>
				<th>基本工资：</th>
				<td><input type="text" name="basicSalary" readonly="readonly" /></td>
			</tr>
			<tr>
				<th>绩效工资</th>
				<td><input type="text" name="performanceSalary" valType="number" required readonly="readonly"/></td>
			</tr>
			<tr>
				<th>本月销售额</th>
				<td><input type="text" name="saleroom" valType="number" required /></td>
			</tr>
			<tr>
				<th>该职位的销售标准：</th>
				<td><span style="color: red;" id="saleTarget"></td>
			</tr>
			<tr>
				<th>该职位的提成标准是</th>
				<td><span style="color:red;" id="commissStandard"></span></td>
			</tr>
			<tr>
				<th>提成：</th>
				<td><input name="commissionSalary" type="text" valType="number" required /></td>
			</tr>
			<tr>
				<th>总工资：</th>
				<td><input name="totalMoney" readonly="readonly" type="text" /></td>
			</tr>
			<tr>
				<th>备注：</th>
				<td><textarea class="text" name="remark" style="width:300px;height:46px" /></textarea></td>
			</tr>
		</table>
		<table border="0" width="500" align="center" style="margin-top:20px">
			<tr>
				<td align="center"><input type="submit" class="btn ok" value="确定" /> <input type="button" class="btn cancel" value="取消"
					onclick="location='${ctx}/salaryManage_list.do'" /></td>
			</tr>
		</table>
	</form>
</body>
</html>
